package fileContent;

import java.io.FileReader;
import java.io.IOException;
import java.io.Reader;

//逐个读出
public class Demo13 {
    public static void main(String[] args) {
        try(Reader reader = new FileReader("./test.txt")){
            while(true){
                int c=reader.read();
                if(c==-1){
                    return;
                }
                char ch=(char)c;
                System.out.println(ch);
            }

        }catch(IOException e){
            e.printStackTrace();
        }
    }
}
